package com.csii.pos.activiti;

import com.csii.pos.activiti.service.ActPromptService;
import com.csii.pos.activiti.vo.ApprovalPromptVo;
import com.csii.result.APIResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * @ClassName: ActivitiPromptController
 * @Author: zhanghao
 * @description: 审批信息提示
 * @Date: 2021/9/9 9:13
 * @Version: 1.0
 */
@RestController
@RequestMapping("/actPrompt")
public class ActivitiPromptController {

    @Autowired
    private ActPromptService actPromptService;

    @RequestMapping("/getPromptMsg")
    public APIResult<?> getPromptMsg(@RequestBody Map<String, Object> map) {
        List<ApprovalPromptVo> promptMsg = actPromptService.getPromptMsg(map);

        return APIResult.successResult(promptMsg);
    }
}
